import QtQuick 2.6
import QtQuick.Layouts 1.2

import "../Base/UiBase"
import "../Base/Config"

Rectangle {
    id: root

    color: Color.background

    ColumnLayout {
        anchors.fill: parent
        spacing: 0

        DiscoverHead {
            id:head
            Layout.fillWidth: true
            Layout.preferredHeight: 2 * 96.0 * Size.ratio
            z: 1
        }

        Item {
            Layout.fillWidth: true
            Layout.fillHeight: true

            Loader {
                anchors.fill: parent
                source: {
                    if(head.activeButtonName === "news")
                            return "NewsGroup/Index.qml"
                    return "Functional/Index.qml"
                }
            }
        }
    }
}
